package ch28.visitor.action;

import ch28.visitor.model.Man;
import ch28.visitor.model.Woman;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/12/25 14:57
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/12/25 14:57
 */
public class Success extends Action {
    public void getManConclusion(Man man) {
        System.out.println(man.getClass().getSimpleName() + " " + this.getClass().getSimpleName() +
                "时，背后多半有一个伟大的女人。");
    }

    public void getWomanConclusion(Woman woman) {
        System.out.println(woman.getClass().getSimpleName() + " " + this.getClass().getSimpleName
                () + "时，背后多半有一个不成功的男人。");
    }
}
